Remove isValidPassword check from User::checkPassword. It is hugely annoying to sudde...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 28 Nov 2010 03:21:16 +0000 (03:21 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 28 Nov 2010 03:21:16 +0000 (03:21 +0000)
includes/User.php

index 6ab18f6..22a506b 100644 (file)
@@ -2780,15 +2780,6 @@ class User {
                global $wgAuth;
                $this->load();
 
-               // Even though we stop people from creating passwords that
-               // are shorter than this, doesn't mean people wont be able
-               // to. Certain authentication plugins do NOT want to save
-               // domain passwords in a mysql database, so we should
-               // check this (incase $wgAuth->strict() is false).
-               if( !$this->isValidPassword( $password ) ) {
-                       return false;
-               }
-
                if( $wgAuth->authenticate( $this->getName(), $password ) ) {
                        return true;
                } elseif( $wgAuth->strict() ) {